package ar.edu.unq.wannaplay.pages.abm.employees;

import ar.edu.unq.wannaplay.dtos.EmployeeDTO;

public class AddEmployeePage extends EmployeeABM {

    private static final long serialVersionUID = 1L;

    public AddEmployeePage() {
        super(new EmployeeDTO());
        this.getIdField().setEnabled(true);
    }

    @Override
    protected void accept() {
        this.getAbmObject().setSkills(this.getNewSkills());
        this.getEmployeeService().save(this.getAbmObject());
    }
}
